Optimal. Leaf size=52 \[ -\frac {\left (c d^2-a e^2\right ) (d+e x)^{2+m}}{e^2 (2+m)}+\frac {c d (d+e x)^{3+m}}{e^2 (3+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {640, 45}
\begin {gather*} \frac {c d (d+e x)^{m+3}}{e^2 (m+3)}-\frac {\left (c d^2-a e^2\right ) (d+e x)^{m+2}}{e^2 (m+2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 640
Rubi steps
\begin {align*} \int (d+e x)^m \left (a d e+\left (c d^2+a e^2\right ) x+c d e x^2\right ) \, dx &=\int (a e+c d x) (d+e x)^{1+m} \, dx\\ &=\int \left (\frac {\left (-c d^2+a e^2\right ) (d+e x)^{1+m}}{e}+\frac {c d (d+e x)^{2+m}}{e}\right ) \, dx\\ &=-\frac {\left (c d^2-a e^2\right ) (d+e x)^{2+m}}{e^2 (2+m)}+\frac {c d (d+e x)^{3+m}}{e^2 (3+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 45, normalized size = 0.87 \begin {gather*} \frac {(d+e x)^{2+m} \left (a e^2 (3+m)+c d (-d+e (2+m) x)\right )}{e^2 (2+m) (3+m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.53, size = 55, normalized size = 1.06
method | result | size |
gosper | \(\frac {\left (e x +d \right )^{2+m} \left (c d e m x +a \,e^{2} m +2 c d e x +3 e^{2} a -c \,d^{2}\right )}{e^{2} \left (m^{2}+5 m +6\right )}\) | \(55\) |
risch | \(\frac {\left (c d \,e^{3} m \,x^{3}+a \,e^{4} m \,x^{2}+2 c \,d^{2} e^{2} m \,x^{2}+2 c d \,e^{3} x^{3}+2 a d \,e^{3} m x +3 a \,e^{4} x^{2}+c \,d^{3} e m x +3 c \,d^{2} e^{2} x^{2}+a \,d^{2} e^{2} m +6 a d \,e^{3} x +3 a \,d^{2} e^{2}-c \,d^{4}\right ) \left (e x +d \right )^{m}}{\left (2+m \right ) e^{2} \left (3+m \right )}\) | \(135\) |
norman | \(\frac {\left (a \,e^{2} m +2 c \,d^{2} m +3 e^{2} a +3 c \,d^{2}\right ) x^{2} {\mathrm e}^{m \ln \left (e x +d \right )}}{m^{2}+5 m +6}+\frac {d^{2} \left (a \,e^{2} m +3 e^{2} a -c \,d^{2}\right ) {\mathrm e}^{m \ln \left (e x +d \right )}}{e^{2} \left (m^{2}+5 m +6\right )}+\frac {c d e \,x^{3} {\mathrm e}^{m \ln \left (e x +d \right )}}{3+m}+\frac {d \left (2 a \,e^{2} m +c \,d^{2} m +6 e^{2} a \right ) x \,{\mathrm e}^{m \ln \left (e x +d \right )}}{e \left (m^{2}+5 m +6\right )}\) | \(162\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 179 vs.
\(2 (51) = 102\).
time = 0.28, size = 179, normalized size = 3.44 \begin {gather*} \frac {{\left ({\left (m + 1\right )} x^{2} e^{2} + d m x e - d^{2}\right )} c d^{2} e^{\left (m \log \left (x e + d\right ) - 2\right )}}{m^{2} + 3 \, m + 2} + \frac {{\left ({\left (m^{2} + 3 \, m + 2\right )} x^{3} e^{3} + {\left (m^{2} + m\right )} d x^{2} e^{2} - 2 \, d^{2} m x e + 2 \, d^{3}\right )} c d e^{\left (m \log \left (x e + d\right ) - 2\right )}}{m^{3} + 6 \, m^{2} + 11 \, m + 6} + \frac {{\left ({\left (m + 1\right )} x^{2} e^{2} + d m x e - d^{2}\right )} {\left (x e + d\right )}^{m} a}{m^{2} + 3 \, m + 2} + \frac {{\left (x e + d\right )}^{m + 1} a d}{m + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 113 vs.
\(2 (51) = 102\).
time = 2.75, size = 113, normalized size = 2.17 \begin {gather*} \frac {{\left (c d^{3} m x e - c d^{4} + {\left (a m + 3 \, a\right )} x^{2} e^{4} + {\left ({\left (c d m + 2 \, c d\right )} x^{3} + 2 \, {\left (a d m + 3 \, a d\right )} x\right )} e^{3} + {\left (a d^{2} m + 3 \, a d^{2} + {\left (2 \, c d^{2} m + 3 \, c d^{2}\right )} x^{2}\right )} e^{2}\right )} {\left (x e + d\right )}^{m} e^{\left (-2\right )}}{m^{2} + 5 \, m + 6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 556 vs.
\(2 (42) = 84\).
time = 0.41, size = 556, normalized size = 10.69 \begin {gather*} \begin {cases} \frac {c d^{2} d^{m} x^{2}}{2} & \text {for}\: e = 0 \\- \frac {a e^{2}}{d e^{2} + e^{3} x} + \frac {c d^{2} \log {\left (\frac {d}{e} + x \right )}}{d e^{2} + e^{3} x} + \frac {c d^{2}}{d e^{2} + e^{3} x} + \frac {c d e x \log {\left (\frac {d}{e} + x \right )}}{d e^{2} + e^{3} x} & \text {for}\: m = -3 \\a \log {\left (\frac {d}{e} + x \right )} - \frac {c d^{2} \log {\left (\frac {d}{e} + x \right )}}{e^{2}} + \frac {c d x}{e} & \text {for}\: m = -2 \\\frac {a d^{2} e^{2} m \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {3 a d^{2} e^{2} \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {2 a d e^{3} m x \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {6 a d e^{3} x \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {a e^{4} m x^{2} \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {3 a e^{4} x^{2} \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} - \frac {c d^{4} \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {c d^{3} e m x \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {2 c d^{2} e^{2} m x^{2} \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {3 c d^{2} e^{2} x^{2} \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {c d e^{3} m x^{3} \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} + \frac {2 c d e^{3} x^{3} \left (d + e x\right )^{m}}{e^{2} m^{2} + 5 e^{2} m + 6 e^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 219 vs.
\(2 (51) = 102\).
time = 1.95, size = 219, normalized size = 4.21 \begin {gather*} \frac {{\left (x e + d\right )}^{m} c d m x^{3} e^{3} + 2 \, {\left (x e + d\right )}^{m} c d^{2} m x^{2} e^{2} + {\left (x e + d\right )}^{m} c d^{3} m x e + 2 \, {\left (x e + d\right )}^{m} c d x^{3} e^{3} + 3 \, {\left (x e + d\right )}^{m} c d^{2} x^{2} e^{2} - {\left (x e + d\right )}^{m} c d^{4} + {\left (x e + d\right )}^{m} a m x^{2} e^{4} + 2 \, {\left (x e + d\right )}^{m} a d m x e^{3} + {\left (x e + d\right )}^{m} a d^{2} m e^{2} + 3 \, {\left (x e + d\right )}^{m} a x^{2} e^{4} + 6 \, {\left (x e + d\right )}^{m} a d x e^{3} + 3 \, {\left (x e + d\right )}^{m} a d^{2} e^{2}}{m^{2} e^{2} + 5 \, m e^{2} + 6 \, e^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.74, size = 141, normalized size = 2.71 \begin {gather*} {\left (d+e\,x\right )}^m\,\left (\frac {x^2\,\left (3\,a\,e^2+3\,c\,d^2+a\,e^2\,m+2\,c\,d^2\,m\right )}{m^2+5\,m+6}+\frac {d^2\,\left (3\,a\,e^2-c\,d^2+a\,e^2\,m\right )}{e^2\,\left (m^2+5\,m+6\right )}+\frac {d\,x\,\left (6\,a\,e^2+2\,a\,e^2\,m+c\,d^2\,m\right )}{e\,\left (m^2+5\,m+6\right )}+\frac {c\,d\,e\,x^3\,\left (m+2\right )}{m^2+5\,m+6}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________